class WsAllGiftModel {
  String head;
  String name;
  int number;
  String giftname;
  String icon;
  String token;
  String anchorHead;
  String anchorName;
  String anchorToken;
  int id;

  WsAllGiftModel(
      {this.head,
      this.name,
      this.number,
      this.giftname,
      this.icon,
      this.token,
      this.anchorHead,
      this.anchorName,
      this.anchorToken,
      this.id});

  WsAllGiftModel.fromJson(Map<String, dynamic> json) {
    head = json['head'];
    name = json['name'];
    number = json['number'];
    giftname = json['giftname'];
    icon = json['icon'];
    token = json['token'];
    anchorHead = json['anchor_head'];
    anchorName = json['anchor_name'];
    anchorToken = json['anchor_token'];
    id = int.parse("${json['id']}");
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['head'] = this.head;
    data['name'] = this.name;
    data['number'] = this.number;
    data['giftname'] = this.giftname;
    data['icon'] = this.icon;
    data['token'] = this.token;
    data['anchor_head'] = this.anchorHead;
    data['anchor_name'] = this.anchorName;
    data['anchor_token'] = this.anchorToken;
    data['id'] = this.id;
    return data;
  }
}
